import java.util.Scanner;
public class Lab06_Task05 {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
int i = s.nextInt();
int j = 0;
String out = "";
if (i>0){
System.out.println(String.format("%-20s %-12s %-13s", "Length", "Width", "Area"));
System.out.println(String.format("%-20s %-12s %-13s", "--------", "--------", "--------"));
while (i>j){
double l = s.nextDouble();
double b = s.nextDouble();
String ls = Double.toString(l);
String bs = Double.toString(b);
String lo = ls;
String bo = bs;
char lc = ls.charAt(ls.length()-1);
char bc = bs.charAt(bs.length()-1);
if (lc=='0') {
lo = String.valueOf(l).split("\\.")[0];
}
if (bc=='0') {
bo = String.valueOf(b).split("\\.")[0];
}
double a = l*b;
out = out + String.format("%-20s %-12s %-13s", lo, bo, String.format("%.2f", a))+"\n";
j++;
}
} else if (i<0) {
System.out.println("You can not have a negative array size");
} else {
System.out.println(String.format("%-20s %-12s %-13s", "Length", "Width", "Area"));
System.out.println(String.format("%-20s %-12s %-13s", "--------", "--------", "--------"));
}
System.out.println(out);
}
}